package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 *@Description 操作员实体类
 *@Author Levi
 *@Date 2019/4/23-12:58
*/
@Data
@Entity
@Table(name = "t_operator")
@DynamicInsert
@DynamicUpdate
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OperatorEntity extends BaseEntity {

    @Column(name = "username")
    private String username;

    @Column(name = "password")
    private String password;

    @Column(name = "login_times")
    private Long loginTimes;

    @Column(name = "last_login_ip")
    private Long lastLoginIP;

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "last_login_time")
    private Date lastLoginTime;

    @Column(name = "last_login_type")
    private Long lastLoginType;

    @Column(name = "del_sign")
    private Integer delSign;
}
